{
  "properties" : { },
  "id" : "414dfcef715c4cb0b5b33eeae23afffd",
  "script" : null,
  "groupId" : "97f65e4b68e1427f857047c67d7e3f42",
  "name" : "新增告警对象",
  "createTime" : 1727070900609,
  "updateTime" : 1724910760357,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "save",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\n    \"code\":\"HHHH\",\n    \"enable\":1,\n    \"targetName\":\"测试Magic\",\n    \"targetDescr\":\"测试Magic\",\n    \"targetType\":2\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 500,\n    \"message\": \"系统内部出现错误\",\n    \"data\": {}\n}",
  "description" : "",
  "requestBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  },
  "responseBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  }
}
================================
return db.insert("""
    insert into alarm_target(code, enable,target_descr,target_name,target_type) 
    values (#{body.code}, #{body.enable},#{body.targetDescr},#{body.targetName},#{body.targetType})
""", 'id')